using System.Data.Entity;
using LabNet.Server.Domain;

namespace LabNet.Server.Configuration
{
    public class RoleGroupConfiguration
    {
        public static void Map(DbModelBuilder modelBuilder)
        {
            modelBuilder
                .Entity<RoleGroup>()
                .ToTable("RoleGroup");

            modelBuilder
                .Entity<RoleGroup>()
                .HasKey(o => new {o.RoleId, o.GroupId});

        }
    }
}